#@head() #@header()
<title>营销管理</title>
#@aside("marketing")
<div class="content-wrapper">
	<section class="content">
		<div class="nav-tabs-custom">
            <ul class="nav nav-tabs">
			  <li class=""><a href="#(path)/admin/page/marketing-directional">奖励发放</a></li>
              <li class="active"><a href="#(path)/admin/page/marketing-activity">推广参数</a></li>
			  <li class=""><a href="#(path)/admin/page/marketing-cashrelease">现金发放</a></li>
            </ul>
            <div class="tab-content">
				  <!--推广参数配置-->
              <div class="tab-pane active" id="tab_1">
				<button type="button" onclick="location.href='/admin/page/marketing-promotionset'" class="btn btn-block btn-info" style="width:120px;float:left;margin-top:10px;margin-right:20px;">推广参数设置</button>
				<div class="input-group margin" style="width:400px;float:left">
					<input type="text" class="form-control" >
					<span class="input-group-btn">
					  <button type="button" class="btn btn-info btn-flat">搜索</button>
					</span>
				</div>
				<div class="box-body">
					<table id="example1" class="table table-striped">
						<thead>
							<tr>
								<th>推荐用户</th>
								<th>注册用户</th>
								<th>注册时间</th>
								<th>奖品</th>
								<th>赠送状态</th>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td>15206443862</td>
								<td>13881425264</td>
								<td>2017-05-31 13:51:28</td>
								<td></td>
								<td><span class="badge bg-red">未领取</span></td>
							</tr>
						</tbody>
					</table>
				</div>
              </div>
			  <!--定向优惠馈赠-->
			  <div class="tab-pane " id="tab_2">
				<div class="box-body">
					<table id="example1" style="width:800px;" class="table table-striped">
						<tbody>
							<tr>
								<th align="right" style="width:100px;">发放事由：</th>
								<td><input type="text" class="form-control" placeholder="发放事由"></td>
							</tr>
							<tr>
								<th align="right" style="width:100px;">发放内容：</th>
								<td>
									<select class="form-control">
										<option>投资红包</option>
										<option>现金红包</option>
										<option>加息券</option>
										<option>虚拟体验金</option>
									 </select>
								</td>
							</tr>
							<tr>
								<th align="right" style="width:100px;">发放方式：</th>
								<td>
									<select id="fangshi" class="form-control">
										<option>选择发放方式</option>
										<option>向指定用户定向派发（无需用户参与领取，立即到账）</option>
										<option>向指定用户群定向派发（无需用户参与领取，立即到账）</option>
									 </select>
									 <div hidden id="a1">
										 <span style="float:left;margin:15px 10px 0 0;">
											向
										 </span>
										 <select style="width:120px;float:left;margin-top:10px;" class="form-control">
											<option>所有会员</option>
											<option>vip会员</option>
										 </select>
										  <span style="float:left;margin:15px 10px 0 10px;">
											发放
										 </span>
										 <input style="width:120px;float:left;margin-top:10px;" type="text" class="form-control" placeholder="">
										<span style="float:left;margin:15px 0px 0 10px;">
											元/人
										 </span>
									</div>
									  <div hidden id="a2">
										 <span style="float:left;margin:15px 10px 0 0;">
											向用户名
										 </span>
										 <input style="width:120px;float:left;margin-top:10px;" type="text" class="form-control" placeholder="">
										  <span style="float:left;margin:15px 10px 0 10px;">
											发放
										 </span>
										 <input style="width:120px;float:left;margin-top:10px;" type="text" class="form-control" placeholder="">
										<span style="float:left;margin:15px 0px 0 10px;">
											元
										 </span>
									</div>
									 
									
									 <script>
										$("#fangshi").change(function(){
											var aa = $("#fangshi").val();
											if(aa=="向指定用户定向派发（无需用户参与领取，立即到账）"){
												$("#a1").show();
												$("#a2").hide();
												
											} else if(aa=="向指定用户群定向派发（无需用户参与领取，立即到账）"){
												$("#a2").show();
												$("#a1").hide();
											}
											
										});
									 </script>
								</td>
							</tr>
						</tbody>
					</table>
				</div>
				<div class="box-footer">
					<button type="submit" style="margin-left:10px;" class="btn btn-info ">提交</button>
					<button type="submit" style="margin-left:10px;" class="btn btn-default">取消</button>
				  </div>
              </div>
            </div>
            <!-- /.tab-content -->
          </div>
		  
	</section>
</div>
#@footer()

</body>
</html>

